package day17;

import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;

public class demo1 {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);

        Set<Character>set1=new HashSet<>();
        set1.add('0');
        set1.add('2');
        set1.add('4');
        set1.add('6');
        set1.add('8');
        Set<Character>set2=new HashSet<>();
        set2.add('1');
        set2.add('3');
        set2.add('5');
        set2.add('7');
        set2.add('9');
        String str= in.next();
        char[]chars=str.toCharArray();
        for (int i = 0; i < chars.length ; i++) {
            if (set1.contains(chars[i])){
                chars[i]='0';
            }else {
                chars[i]='1';
            }
        }
        if(chars[0]=='0') System.out.println(0);
        else System.out.println(String.valueOf(chars));
    }
}
